home *** CD-ROM | disk | FTP | other *** search
- ;void cursor_off();
-
- EXTRN _memory_model:byte
- EXTRN _start_line:byte
- EXTRN _stop_line:byte
-
- _TEXT SEGMENT BYTE PUBLIC 'CODE'
- ASSUME CS:_TEXT
- PUBLIC _cursor_off
- _cursor_off proc near
- mov ah,3 ;func to get cursor lines
- mov bh,0 ;page 0
- int 10h ;CH=start, CL=stop
- mov _start_line,ch ;save start_line
- mov _stop_line,cl ;save stop_line
- mov cl,0 ;make stop_line 0
- mov ch,20 ;use too-high number for start_line
- mov ah,1 ;func to set cursor lines
- int 10h ;make cursor invisible
- cmp _memory_model,0 ;quit
- jle quit ;
- db 0CBh ;RET far
- quit: ret ;RET near
- _cursor_off endp
- _TEXT ENDS
- END